package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：SysSpecialProjectPackage
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/13 14:24
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "SYS_SPECIAL_PROJECT_PACKAGE")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class SysSpecialProjectPackage extends BaseDataEntity<Long> {
    /**
     *ID
     */
    private Long id;
    /**
     *项目名称
     */
    private String name;
    /**
     *拼音码
     */
    private String pinyinCode;
    /**
     *五笔码
     */
    private String wubicode;
    /**
     *英文
     */
    private String enCode;
    /**
     *所属特检类型(空、MYZH,FZBL,TSRS)
     */
    private String specialType;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SPECIAL_PROJECT_PACKAGE")
    @SequenceGenerator(name = "SEQ_SPECIAL_PROJECT_PACKAGE", sequenceName = "SEQ_SPECIAL_PROJECT_PACKAGE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "PINYINCODE")
    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }

    @Basic
    @Column(name = "WUBICODE")
    public String getWubicode() {
        return wubicode;
    }

    public void setWubicode(String wubicode) {
        this.wubicode = wubicode;
    }

    @Basic
    @Column(name = "ENCODE")
    public String getEnCode() {
        return enCode;
    }

    public void setEnCode(String enCode) {
        this.enCode = enCode;
    }

    @Basic
    @Column(name = "SPECIALTYPE")
    public String getSpecialType() {
        return specialType;
    }

    public void setSpecialType(String specialType) {
        this.specialType = specialType;
    }
}
